package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.TCartDao;
import com.framework.loippi.entity.TCart;
import com.framework.loippi.service.TCartService;
import java.util.List;
/**
 * SERVICE - TCart(药房表(购物车表))
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class TCartServiceImpl extends GenericServiceImpl<TCart, Long> implements TCartService {
	
	@Autowired
	private TCartDao tCartDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(tCartDao);
	}

	public List<TCart> findListByPage(Object parameter){
		return tCartDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return tCartDao.deletes( parameter);
	}

	@Override
	public List<TCart> findByUserId(Integer userId) {
	    return tCartDao.findByUserId(userId);
	}


}
